package com.example.demofdfs.db.mysql;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;

public class TestMysql {

	public static void main(String[] args) throws SQLException {
		Connection conn = DBConnect.conncet();
		String sql = "SELECT * FROM task";
		
		PreparedStatement prep = conn.prepareStatement(sql);
		ResultSet result = prep.executeQuery();
		while(result.next()) {
			System.out.print(result.getRow() + " : ");
			System.out.print(result.getObject(8) + " : ");
			System.out.println(result.getObject(9));
		}
	}

}
